    <!-- 评论及投诉 -->
    <div class="comment" style="font-size: 20px">
            <!-- 评论 -->
            <div class="ordercomment">
                
                    
                    <c:if test="${orderstate!='4' }">
                        
                    
                    </c:if>
                    <c:if test="${orderstate=='4' }">
                        
                            <!-- 订单完成，但是未评论，显示填写评论 -->
                            <c:if test="${empty cmt }">
                                <div class="fillcmt">
                                    <div class="panel panel-default">
                                        <!-- Default panel contents -->
                                        <div class="panel-heading">您尚未评价过该订单</div>
                                        <div class="panel-body">
                                            <label>
                                            <input type="hidden" name="oid" value="${orderid }">
                                            <span>请输入您的评论：<p>还可以输入<span id="word">50</span>个字</p></span>
                                            <textarea class="well" id="cmttext" name="comment" placeholder="Your Message to Us"></textarea>
                                            <span id="cmtwarning" style="color: red;"></span>
                                            </label>
                                            <div id="star-rating">
                                                <input id="kartik" name="grade" class="rating" data-stars="5" data-step="0.1" title=""/>
                                                <div class="form-group" style="margin-top:10px">
                                                    <button id="rate-btn" class="btn btn-primary btn-lg">提交评分</button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </c:if>
                            <!-- 订单完成，已评论 ，显示评论内容-->
                            <c:if test="${!empty cmt}">
                                <div class="panel panel-success">
                            
                                    <!-- Default panel contents -->
                                    <div class="panel-heading">您已经评价过该订单</div>
                                    <div class="panel-body">
                                        <!-- List group -->
                                        <!-- 用户评论 -->
                                        <ul class="list-group">
                                        <li id="cmt" class="list-group-item">
                                            <p>您在<span class="cmt-time">${ordercmt.ctime }</span>发表评论:</p>
                                            <p class="publish">${ordercmt.comments }</p>
                                        </li>
                                        <p>${ordercmt.reply}</p>
                                        <c:if test="${!empty ordercmt.reply}">
                                            <div>  
                                                <!-- 商家回复 -->
                                                <li id="reply" class="list-group-item">
                                                    <p>商家在<span class="reply-time">${ordercmt.rtime }</span>回复:</p>
                                                    <p class="publish">${ordercmt.reply }</p>
                                                </li>
                                            </div>
                                        </c:if>
                                        </ul>
                                    
                                    </div>
        
                                </div>
                            
                            </c:if>
                        
                    </c:if>
                
                
            </div>
            
            
            <!-- 投诉 -->
            <div class="complaint">
            
                <div id="myModal"class="modal fade" tabindex="-1" role="dialog">
                    <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title">请输入投诉理由</h4>
                        </div>
                        <div class="modal-body">
                        <input type="hidden" name="oid" value="${orderid }">
                        <span><p>还可以输入<span id="compword">100</span>个字</p></span>
                        <textarea class="well"id="comptext" name="comment" placeholder="Your Complaint Reason"></textarea>
                        <span id="compwarning" style="color: red;"></span>
                        </div>
                        <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                        <button id="submitcomp" type="button" class="btn btn-primary">确定</button>
                        </div>
                    </div>
                    </div>
                </div>
                
                
                
                    
                    <c:if test="${orderstate!='4' }">
                    
                    
                    </c:if>
                    <c:if test="${orderstate=='4' }">
                        <c:if test="${compstate=='0' }">
                            <div id="complaint-button">
                                
                                <button id="compbtn" class="btn btn-danger">向平台投诉</button>
                            </div>
                        </c:if>       
                            <%-- <c:when test="${complaint }">
                                <div class="fillcomp panel panel-default">
                                        <!-- Default panel contents -->
                                        <div class="panel-heading">如果您对本次外卖有任何不满意的地方，可以向管理平台申请投诉，请输入投诉理由</div>
                                        <div class="panel-body">
                                            <label>
                                            <input type="hidden" name="oid" value="${orderid }">
                                            <span><p>还可以输入<span id="compword">100</span>个字</p></span>
                                            <textarea class="well"id="comptext" name="comment" placeholder="Your Complaint Reason"></textarea>
                                            </label>
                                            <button id="comp-btn"type="submit" class="btn btn-primary btn-lg">提交投诉</button>
                                        </div>
                                </div>
                            </c:when>
                            <c:otherwise>
                            
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                    <h3 class="panel-title">您已投诉商家 ${merchant.mname }，投诉理由如下：</h3>
                                    </div>
                                    <div class="panel-body">
                                    ${complaint }
                                    </div>
                                </div>
                            </c:otherwise> --%>
                        
                    </c:if>
                
            </div>
        </div>
    